//---------------------------------------------------------------------
// This file is part of the Microsoft BizTalk Server 2006 SDK
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft BizTalk
// Server 2006 release and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Collections.Generic;

namespace MsPartners.Unisys.BizTalkAdapters.AdapterWizard
{
	public class WzPageTransmitProperties : Microsoft.BizTalk.Wizard.WizardInteriorPage, IWizardControlInterface
	{
		public event AddTransmitHandlerPropertyEvent addTransmitHandlerPropertyEvent; 
		public event AddTransmitEndpointPropertyEvent addTransmitEndpointPropertyEvent; 
		private bool isLoaded = false;
		private List<AdapterProperty> transmitHandlerProperties = new List<AdapterProperty>();
		private List<AdapterProperty> transmitEndpointProperties = new List<AdapterProperty>();
		private System.Windows.Forms.Button cmdTransmitHandlerDel;
		private System.Windows.Forms.Button cmdTransmitHandlerAdd;
		private System.Windows.Forms.ComboBox cmbTransmitHandlerDataType;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ListBox lstTransmitHandlerProperties;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtTransmitHandlerNodeName;
		private System.Windows.Forms.Button cmdTransmitEndpointDel;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Button cmdTransmitEndpointAdd;
		private System.Windows.Forms.ListBox lstTransmitEndpointProperties;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtTransmitEndpointNodeName;
		private System.Windows.Forms.ComboBox cmbTransmitEndpointDataType;
		private System.Windows.Forms.ErrorProvider errorProvider;
		private System.Windows.Forms.GroupBox grpHandler;
		private System.Windows.Forms.GroupBox grpEndpoint;
		private Label label5;
		private TextBox txtTransmitHandlerFriendlyName;
		private Label label6;
		private TextBox txtTransmitHandlerDesc;
		private Label label7;
		private TextBox txtTransmitEndpointDesc;
		private Label label8;
		private TextBox txtTransmitEndpointFriendlyName;
		private CheckBox chkPartOfURI;
		private System.ComponentModel.IContainer components = null;

		public WzPageTransmitProperties()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		public bool NextButtonEnabled
		{
			get {	return true;	}
		}

		public bool NeedSummary
		{
			get {	return false;	}
		}

		protected void AddTransmitHandlerProperty(string strName,AdapterProperty adapterProperty)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName, adapterProperty);
			OnAddTransmitHandlerProperty(PropertyPair);
		}

		protected void RemoveTransmitHandlerProperty(string strName)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,null,true);
			OnAddTransmitHandlerProperty(PropertyPair);
		}

		// The protected OnAddTransmitHandlerProperty method raises the event by invoking 
		// the delegates. The sender is always this, the current instance 
		// of the class.
		protected virtual void OnAddTransmitHandlerProperty(PropertyPairEvent e)
		{
			if (e != null) 
			{
				// Invokes the delegates. 
				addTransmitHandlerPropertyEvent(this,e);
			}
		}
		
		protected void AddTransmitEndpointProperty(string strName,AdapterProperty adapterProperty)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,adapterProperty);
			OnAddTransmitEndpointProperty(PropertyPair);
		}

		protected void RemoveTransmitEndpointProperty(string strName)
		{
			PropertyPairEvent PropertyPair = new PropertyPairEvent(strName,null,true);
			OnAddTransmitEndpointProperty(PropertyPair);
		}

		// The protected OnAddTransmitEndpointProperty method raises the event by invoking 
		// the delegates. The sender is always this, the current instance 
		// of the class.
		protected virtual void OnAddTransmitEndpointProperty(PropertyPairEvent e)
		{
			if (e != null) 
			{
				// Invokes the delegates. 
				addTransmitEndpointPropertyEvent(this,e);
			}
		}

		private void WzPageTransmitProperties_Load(object sender, System.EventArgs e)
		{
			string []dataTypes = {"xs:boolean",
										"xs:int",
										"xs:long",
										"xs:string"};
			try
			{
				if (isLoaded)
					return;
				foreach(string dataType in dataTypes)
				{
					cmbTransmitHandlerDataType.Items.Add(dataType);
					cmbTransmitEndpointDataType.Items.Add(dataType);
				}
				cmbTransmitHandlerDataType.Text = "xs:string";
				cmbTransmitEndpointDataType.Text = "xs:string";

				isLoaded = true;
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
			cmbTransmitHandlerDataType.Focus();
#if DEBUG
			txtTransmitEndpointNodeName.Text = "Endpoint1";
			txtTransmitEndpointFriendlyName.Text = "Endpoint1FriendlyName";
			txtTransmitEndpointDesc.Text = "Endpoint1 Description";
			txtTransmitHandlerNodeName.Text = "Handler1";
			txtTransmitHandlerFriendlyName.Text = "Handler1FriendlyName";
			txtTransmitHandlerDesc.Text = "Handler1 Description";

#endif

		}

		private void cmdTransmitHandlerAdd_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (!Regex.IsMatch(txtTransmitHandlerNodeName.Text,@"^[_a-zA-Z][_a-zA-Z0-9]*$"))
				{
					errorProvider.SetError(txtTransmitHandlerNodeName,
						"Please enter a valid name for the new property");
					return;
				}
				if (VarNameAlreadyExists(txtTransmitHandlerNodeName.Text))
				{
					errorProvider.SetError(txtTransmitHandlerNodeName,
						"Please enter a unique name (different case is not considered unique). Handler and endpoint " +
						"properties cannot have the same name.");
					return;
				}
				
				lstTransmitHandlerProperties.Items.Add(txtTransmitHandlerNodeName.Text + " (" + cmbTransmitHandlerDataType.Text + ")");
				transmitHandlerProperties.Add(
					new AdapterProperty(txtTransmitHandlerNodeName.Text,
										cmbTransmitHandlerDataType.Text,
										txtTransmitHandlerFriendlyName.Text,
										txtTransmitHandlerDesc.Text,
										false));
				txtTransmitHandlerNodeName.Clear();
				txtTransmitHandlerFriendlyName.Clear();
				txtTransmitHandlerDesc.Clear();
				cmbTransmitHandlerDataType.Text = "xs:string";

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}

		private bool VarNameAlreadyExists(string variableName)
		{
			foreach(object o in lstTransmitHandlerProperties.Items)
			{
				string objectValue = o.ToString();
				objectValue = objectValue.Remove(objectValue.IndexOf(" ("),objectValue.Length - objectValue.IndexOf(" ("));
				if (objectValue.ToLower() == variableName.ToLower())
					return true;
			}
			foreach(object o in lstTransmitEndpointProperties.Items)
			{
				string objValue = o.ToString();
				objValue = objValue.Remove(objValue.IndexOf(" ("),objValue.Length - objValue.IndexOf(" ("));
				if (objValue.ToLower() == variableName.ToLower())
					return true;
			}
			return false;
		}

		/// <summary>
		/// Resets all of the errorproviders when anything succeeds
		/// </summary>
		private void ResetAllErrProviders()
		{
			foreach(Control ctl in grpHandler.Controls)
			{
				errorProvider.SetError(ctl,"");
			}
			foreach(Control ctl in grpEndpoint.Controls)
			{
				errorProvider.SetError(ctl,"");
			}
		}

		private void cmdTransmitEndpointAdd_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (!Regex.IsMatch(txtTransmitEndpointNodeName.Text,@"^[_a-zA-Z][_a-zA-Z0-9]*$"))
				{
					errorProvider.SetError(txtTransmitEndpointNodeName,
						"Please enter a valid name for the new property");
					return;
				}
				if (VarNameAlreadyExists(txtTransmitEndpointNodeName.Text))
				{
					errorProvider.SetError(txtTransmitEndpointNodeName,
						"Please enter a unique name (different case is not considered unique). Handler and endpoint " +
						"properties cannot have the same name.");
					return;
				}
				lstTransmitEndpointProperties.Items.Add(txtTransmitEndpointNodeName.Text + " (" + cmbTransmitEndpointDataType.Text + ")");
				transmitEndpointProperties.Add(
					new AdapterProperty(txtTransmitEndpointNodeName.Text,
										cmbTransmitEndpointDataType.Text,
										txtTransmitEndpointFriendlyName.Text,
										txtTransmitEndpointDesc.Text,
										chkPartOfURI.Checked));
				txtTransmitEndpointNodeName.Clear();
				txtTransmitEndpointFriendlyName.Clear();
				txtTransmitEndpointDesc.Clear();
				cmbTransmitEndpointDataType.Text = "xs:string";

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}

		private void cmdTransmitHandlerDel_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (lstTransmitHandlerProperties.SelectedItem == null)
				{
					errorProvider.SetError(cmdTransmitHandlerDel,
						"Please select a propValue in the property list");
					return;
				}
				Object objItem = lstTransmitHandlerProperties.SelectedItem;
				string propValue = objItem.ToString();
				string propName = propValue.Substring(0,propValue.IndexOf("(") - 1);
				RemoveTransmitHandlerProperty(propName);
				lstTransmitHandlerProperties.Items.Remove(lstTransmitHandlerProperties.SelectedItem);
				foreach (AdapterProperty ap in transmitHandlerProperties)
				{
					if (ap.Name == propName)
					{
						txtTransmitHandlerNodeName.Text = ap.Name;
						txtTransmitHandlerFriendlyName.Text = ap.FriendlyName;
						txtTransmitHandlerDesc.Text = ap.Description;
						cmbTransmitHandlerDataType.Text = ap.DataType; 
						transmitHandlerProperties.Remove(ap);
						break;
					}
				}
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}	
		}

		private void cmdTransmitEndpointDel_Click(object sender, System.EventArgs e)
		{
			try
			{
				ResetAllErrProviders();
				if (lstTransmitEndpointProperties.SelectedItem == null)
				{
					errorProvider.SetError(cmdTransmitEndpointDel,
						"Please select a propValue in the property list");
					return;
				}
				Object objItem = lstTransmitEndpointProperties.SelectedItem;
				string propValue = objItem.ToString();
				string propName = propValue.Substring(0,propValue.IndexOf("(") - 1);
				RemoveTransmitEndpointProperty(propName);
				lstTransmitEndpointProperties.Items.Remove(lstTransmitEndpointProperties.SelectedItem);
				foreach (AdapterProperty ap in transmitEndpointProperties)
				{
					if (ap.Name == propName)
					{
						txtTransmitEndpointNodeName.Text = ap.Name;
						txtTransmitEndpointFriendlyName.Text = ap.FriendlyName;
						txtTransmitEndpointDesc.Text = ap.Description;
						cmbTransmitEndpointDataType.Text = ap.DataType;
						chkPartOfURI.Checked = ap.PartOfURI;
						transmitEndpointProperties.Remove(ap);
						break;
					}
				}

			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}
		}
		
		private void WzPageTransmitProperties_Leave(object sender, System.EventArgs e)
		{
			try
			{
				foreach(AdapterProperty ap in transmitHandlerProperties)
				{
					AddTransmitHandlerProperty(WizardValues.TransmitHandlerProperty, ap);
				}
				foreach(AdapterProperty ap in transmitEndpointProperties)
				{
					AddTransmitEndpointProperty(WizardValues.TransmitEndpointProperty, ap);
				}
				transmitHandlerProperties.Clear();
				transmitEndpointProperties.Clear();
			}
			catch(Exception err)
			{
				MessageBox.Show(err.Message);
				Trace.WriteLine(err.Message + Environment.NewLine + err.StackTrace);
			}		
		}

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WzPageTransmitProperties));
			this.grpHandler = new System.Windows.Forms.GroupBox();
			this.label6 = new System.Windows.Forms.Label();
			this.txtTransmitHandlerDesc = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.txtTransmitHandlerFriendlyName = new System.Windows.Forms.TextBox();
			this.cmdTransmitHandlerDel = new System.Windows.Forms.Button();
			this.cmdTransmitHandlerAdd = new System.Windows.Forms.Button();
			this.cmbTransmitHandlerDataType = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.lstTransmitHandlerProperties = new System.Windows.Forms.ListBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txtTransmitHandlerNodeName = new System.Windows.Forms.TextBox();
			this.grpEndpoint = new System.Windows.Forms.GroupBox();
			this.label7 = new System.Windows.Forms.Label();
			this.txtTransmitEndpointDesc = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.txtTransmitEndpointFriendlyName = new System.Windows.Forms.TextBox();
			this.cmdTransmitEndpointDel = new System.Windows.Forms.Button();
			this.label3 = new System.Windows.Forms.Label();
			this.cmdTransmitEndpointAdd = new System.Windows.Forms.Button();
			this.lstTransmitEndpointProperties = new System.Windows.Forms.ListBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txtTransmitEndpointNodeName = new System.Windows.Forms.TextBox();
			this.cmbTransmitEndpointDataType = new System.Windows.Forms.ComboBox();
			this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.chkPartOfURI = new System.Windows.Forms.CheckBox();
			this.panelHeader.SuspendLayout();
			this.grpHandler.SuspendLayout();
			this.grpEndpoint.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
			this.SuspendLayout();
			// 
			// labelTitle
			// 
			resources.ApplyResources(this.labelTitle, "labelTitle");
			// 
			// labelSubTitle
			// 
			resources.ApplyResources(this.labelSubTitle, "labelSubTitle");
			// 
			// grpHandler
			// 
			this.grpHandler.Controls.Add(this.label6);
			this.grpHandler.Controls.Add(this.txtTransmitHandlerDesc);
			this.grpHandler.Controls.Add(this.label5);
			this.grpHandler.Controls.Add(this.txtTransmitHandlerFriendlyName);
			this.grpHandler.Controls.Add(this.cmdTransmitHandlerDel);
			this.grpHandler.Controls.Add(this.cmdTransmitHandlerAdd);
			this.grpHandler.Controls.Add(this.cmbTransmitHandlerDataType);
			this.grpHandler.Controls.Add(this.label2);
			this.grpHandler.Controls.Add(this.lstTransmitHandlerProperties);
			this.grpHandler.Controls.Add(this.label1);
			this.grpHandler.Controls.Add(this.txtTransmitHandlerNodeName);
			resources.ApplyResources(this.grpHandler, "grpHandler");
			this.grpHandler.Name = "grpHandler";
			this.grpHandler.TabStop = false;
			// 
			// label6
			// 
			resources.ApplyResources(this.label6, "label6");
			this.label6.Name = "label6";
			// 
			// txtTransmitHandlerDesc
			// 
			resources.ApplyResources(this.txtTransmitHandlerDesc, "txtTransmitHandlerDesc");
			this.txtTransmitHandlerDesc.Name = "txtTransmitHandlerDesc";
			// 
			// label5
			// 
			resources.ApplyResources(this.label5, "label5");
			this.label5.Name = "label5";
			// 
			// txtTransmitHandlerFriendlyName
			// 
			resources.ApplyResources(this.txtTransmitHandlerFriendlyName, "txtTransmitHandlerFriendlyName");
			this.txtTransmitHandlerFriendlyName.Name = "txtTransmitHandlerFriendlyName";
			// 
			// cmdTransmitHandlerDel
			// 
			resources.ApplyResources(this.cmdTransmitHandlerDel, "cmdTransmitHandlerDel");
			this.cmdTransmitHandlerDel.Name = "cmdTransmitHandlerDel";
			this.cmdTransmitHandlerDel.Click += new System.EventHandler(this.cmdTransmitHandlerDel_Click);
			// 
			// cmdTransmitHandlerAdd
			// 
			resources.ApplyResources(this.cmdTransmitHandlerAdd, "cmdTransmitHandlerAdd");
			this.cmdTransmitHandlerAdd.Name = "cmdTransmitHandlerAdd";
			this.cmdTransmitHandlerAdd.Click += new System.EventHandler(this.cmdTransmitHandlerAdd_Click);
			// 
			// cmbTransmitHandlerDataType
			// 
			this.cmbTransmitHandlerDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.cmbTransmitHandlerDataType, "cmbTransmitHandlerDataType");
			this.cmbTransmitHandlerDataType.Name = "cmbTransmitHandlerDataType";
			// 
			// label2
			// 
			resources.ApplyResources(this.label2, "label2");
			this.label2.Name = "label2";
			// 
			// lstTransmitHandlerProperties
			// 
			resources.ApplyResources(this.lstTransmitHandlerProperties, "lstTransmitHandlerProperties");
			this.lstTransmitHandlerProperties.Name = "lstTransmitHandlerProperties";
			// 
			// label1
			// 
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			// 
			// txtTransmitHandlerNodeName
			// 
			resources.ApplyResources(this.txtTransmitHandlerNodeName, "txtTransmitHandlerNodeName");
			this.txtTransmitHandlerNodeName.Name = "txtTransmitHandlerNodeName";
			// 
			// grpEndpoint
			// 
			this.grpEndpoint.Controls.Add(this.chkPartOfURI);
			this.grpEndpoint.Controls.Add(this.label7);
			this.grpEndpoint.Controls.Add(this.txtTransmitEndpointDesc);
			this.grpEndpoint.Controls.Add(this.label8);
			this.grpEndpoint.Controls.Add(this.txtTransmitEndpointFriendlyName);
			this.grpEndpoint.Controls.Add(this.cmdTransmitEndpointDel);
			this.grpEndpoint.Controls.Add(this.label3);
			this.grpEndpoint.Controls.Add(this.cmdTransmitEndpointAdd);
			this.grpEndpoint.Controls.Add(this.lstTransmitEndpointProperties);
			this.grpEndpoint.Controls.Add(this.label4);
			this.grpEndpoint.Controls.Add(this.txtTransmitEndpointNodeName);
			this.grpEndpoint.Controls.Add(this.cmbTransmitEndpointDataType);
			resources.ApplyResources(this.grpEndpoint, "grpEndpoint");
			this.grpEndpoint.Name = "grpEndpoint";
			this.grpEndpoint.TabStop = false;
			// 
			// label7
			// 
			resources.ApplyResources(this.label7, "label7");
			this.label7.Name = "label7";
			// 
			// txtTransmitEndpointDesc
			// 
			resources.ApplyResources(this.txtTransmitEndpointDesc, "txtTransmitEndpointDesc");
			this.txtTransmitEndpointDesc.Name = "txtTransmitEndpointDesc";
			// 
			// label8
			// 
			resources.ApplyResources(this.label8, "label8");
			this.label8.Name = "label8";
			// 
			// txtTransmitEndpointFriendlyName
			// 
			resources.ApplyResources(this.txtTransmitEndpointFriendlyName, "txtTransmitEndpointFriendlyName");
			this.txtTransmitEndpointFriendlyName.Name = "txtTransmitEndpointFriendlyName";
			// 
			// cmdTransmitEndpointDel
			// 
			resources.ApplyResources(this.cmdTransmitEndpointDel, "cmdTransmitEndpointDel");
			this.cmdTransmitEndpointDel.Name = "cmdTransmitEndpointDel";
			this.cmdTransmitEndpointDel.Click += new System.EventHandler(this.cmdTransmitEndpointDel_Click);
			// 
			// label3
			// 
			resources.ApplyResources(this.label3, "label3");
			this.label3.Name = "label3";
			// 
			// cmdTransmitEndpointAdd
			// 
			resources.ApplyResources(this.cmdTransmitEndpointAdd, "cmdTransmitEndpointAdd");
			this.cmdTransmitEndpointAdd.Name = "cmdTransmitEndpointAdd";
			this.cmdTransmitEndpointAdd.Click += new System.EventHandler(this.cmdTransmitEndpointAdd_Click);
			// 
			// lstTransmitEndpointProperties
			// 
			resources.ApplyResources(this.lstTransmitEndpointProperties, "lstTransmitEndpointProperties");
			this.lstTransmitEndpointProperties.Name = "lstTransmitEndpointProperties";
			// 
			// label4
			// 
			resources.ApplyResources(this.label4, "label4");
			this.label4.Name = "label4";
			// 
			// txtTransmitEndpointNodeName
			// 
			resources.ApplyResources(this.txtTransmitEndpointNodeName, "txtTransmitEndpointNodeName");
			this.txtTransmitEndpointNodeName.Name = "txtTransmitEndpointNodeName";
			// 
			// cmbTransmitEndpointDataType
			// 
			this.cmbTransmitEndpointDataType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			resources.ApplyResources(this.cmbTransmitEndpointDataType, "cmbTransmitEndpointDataType");
			this.cmbTransmitEndpointDataType.Name = "cmbTransmitEndpointDataType";
			// 
			// errorProvider
			// 
			this.errorProvider.ContainerControl = this;
			resources.ApplyResources(this.errorProvider, "errorProvider");
			// 
			// chkPartOfURI
			// 
			resources.ApplyResources(this.chkPartOfURI, "chkPartOfURI");
			this.chkPartOfURI.Checked = true;
			this.chkPartOfURI.CheckState = System.Windows.Forms.CheckState.Checked;
			this.chkPartOfURI.Name = "chkPartOfURI";
			this.chkPartOfURI.UseVisualStyleBackColor = true;
			// 
			// WzPageTransmitProperties
			// 
			this.Controls.Add(this.grpHandler);
			this.Controls.Add(this.grpEndpoint);
			this.Name = "WzPageTransmitProperties";
			this.SubTitle = "Specify transmit adapter properties";
			this.Title = "Transmit side properties";
			this.Load += new System.EventHandler(this.WzPageTransmitProperties_Load);
			this.Leave += new System.EventHandler(this.WzPageTransmitProperties_Leave);
			this.Controls.SetChildIndex(this.panelHeader, 0);
			this.Controls.SetChildIndex(this.grpEndpoint, 0);
			this.Controls.SetChildIndex(this.grpHandler, 0);
			this.panelHeader.ResumeLayout(false);
			this.grpHandler.ResumeLayout(false);
			this.grpHandler.PerformLayout();
			this.grpEndpoint.ResumeLayout(false);
			this.grpEndpoint.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

	}
}

